<?php
  session_register("A");
  
  $A = array("A1", "A2");
  
  $str = session_encode();
  
  $openfile = @fopen("saveme.txt","w") or die ("This operation cannot be performed.");

  @fwrite($openfile, $str);
  @fclose($openfile) or die ("This operation cannot be performed.");

  echo "Success!!";
?>
           